package com.larry.resend.hp;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.pegatron.ers.server.app.helper.ContextHelper;
import com.pegatron.ers.vo.common.CommonDataModel;

public class T01Processor extends HpCommonProcessor {

	public T01Processor() {
		super("KeyinService", "submitItems", "com.pegatron.ers.server.app.message.edi.hp.HpEdiT01Sender", "com.pegatron.ers.jms.edi.hp.executor.HpEdiT01MessageConsumer");
	}

	@Override
	public void process(String key) throws Exception {
		super.serviceOrderId = key;
		this.sendMessage();
	}

	@Override
	public void initData() {

	}

	@Override
	public void prepareParams() throws Exception {
		initParams = new ArrayList<Object>();
		List<CommonDataModel> infos = ContextHelper.getHpEdiService().getCsoInfo(null, null, serviceOrderId, rmaSite);
		initParams.add(infos);
		initParams.add(rmaSite);
		initParams.add(null);
		String entryNo = "SYSADMIN";
		initParams.add(entryNo);
	}
}
